import React from 'react'
import {useRef,useEffect} from "react"
function Fun() {
  let myref = useRef(null)
  useEffect(()=>{
      console.log(myref.current);
  },[])
  return (
    <div>
        <span ref={myref}>2222</span>
    </div>
  )
}

export default Fun